<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	
<h:head>
<link rel="shortcut icon" href="./favicon.ico" />
<link rel="icon" href="./favicon.ico" />
<title>
	<ui:insert name="title">Augeas Warehouse</ui:insert>
</title>
 	<h:outputStylesheet library="css" name="default.css"  />
</h:head>

<h:body>
	<!-- Start of header -->
	<div id="header">
		<div id="loginInfo">
			<h:panelGroup rendered="#{!authenticationBean.userLogged}">
				 <h:outputLink value="#{request.contextPath}/faces/login.xhtml" >
					Login
				</h:outputLink>
			</h:panelGroup>
			<h:panelGroup rendered="#{authenticationBean.userLogged}">
				<h:form id="loginLink">
				 <h:outputText value="#{authenticationBean.loggedUser.name}" />
				 | 
				  <a4j:commandLink action="#{authenticationBean.doLogout}" value="Logout" />
				</h:form>
			</h:panelGroup>
		</div>
		<h1>Augeas Warehouse</h1>
	</div>
	<!-- End of header -->

	<!--  Start of Main Menu -->
	<ui:include src="includes/mainmenu.xhtml" />
	<!--  End of Main Menu -->

	<!-- Start of content -->
	<div id="content">
		<ui:insert name="content"/>
	</div>
	<!-- End of content -->

	<!--  Start of footer -->
	<div id="footer">
		<ui:insert name="footer">
    		&copy; 2012 by AugeasWH Team
  		</ui:insert>
	</div>
	<!-- End of footer -->

</h:body>

</html>
